package graphics.complexe;

import graphics.primitive.Circle;
import graphics.primitive.Disk;

import javax.media.opengl.GL;

import settings.Settings;
import utils.Vector3D;


public class NodeGraphicObject extends BaseGraphicObject
{

	public NodeGraphicObject(GL gl)
	{
		this.shape = new Disk(gl);
		this.outline = new Circle(gl);
		this.selectionShape = new Circle(gl);
		((Circle)(this.selectionShape)).lineWidth = Settings.SelectionLineWidth;
		this.selectionShape.setColor(Settings.selectionColor);
	}
	
	@Override
	public void setScale(Vector3D scale)
	{
		super.setScale(scale);
		this.selectionShape.setScale(new Vector3D(scale.x() + Settings.SelectionOffset, scale.y() + Settings.SelectionOffset, 1.0f));
	}
}
